package persistence;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the Filling database table.
 * 
 */
@Entity
public class Filling implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idFilling;
	private String stateFilling;
	private Set<Firm> firms;

    public Filling() {
    }


	@Id
	public int getIdFilling() {
		return this.idFilling;
	}

	public void setIdFilling(int idFilling) {
		this.idFilling = idFilling;
	}


	public String getStateFilling() {
		return this.stateFilling;
	}

	public void setStateFilling(String stateFilling) {
		this.stateFilling = stateFilling;
	}


	//bi-directional many-to-many association to Firm
	@ManyToMany(mappedBy="fillings")
	public Set<Firm> getFirms() {
		return this.firms;
	}

	public void setFirms(Set<Firm> firms) {
		this.firms = firms;
	}
	
}